
{extend name="layout"}
{block name="detail"}
<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="" class="aui-header-item" style="visibility:hidden;">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-center-logo">
            <div class="aui-car-white-Typeface">代理记录</div>
        </div>
    </div>
    <a href="/my/goods_edit" class="aui-header-item-icon" style="min-width:0;visibility:hidden;">
        <i class="aui-icon aui-icon-add"></i>
    </a>
</header>
<section class="aui-myOrder-content">
    <div class="m-tab demo-small-pitch" data-ydui-tab>
        <div class="aui-myOrder-fix">
            <ul class="tab-nav">
                <li class="tab-nav-item "><a href="{:url('index/center/agent')}">我代理了谁</a></li>
                <li class="tab-nav-item tab-active"><a href="{:url('index/center/agent2')}">谁代理了我</a></li>
            </ul>
        </div>
        <div class="tab-panel" style="padding:10px;margin-top:5px;">
            <table style="width:100%;">
                <tr>
                    <td style="border-bottom:2px solid #ddd;padding:5px 3px;" width="50"><b>头像</b></td>
                    <td style="border-bottom:2px solid #ddd;padding:5px 3px;"><b>微信昵称</b></td>
                    <td style="border-bottom:2px solid #ddd;padding:5px 3px;"><b>微信号</b></td>
                    <td style="border-bottom:2px solid #ddd;padding:5px 3px;text-align:right;" width="30"><b>等级</b></td>
                </tr>
                {volist name="agents" id="agent"}
                {if condition="$agent.uid"}
                <tr style="padding: 10px 0px;">
                    <td style="border-bottom:1px solid #ddd;padding:5px 3px;">
                        <img src="{$agent.img}" style="width:30px;height:30px;border-radius:15px;">
                    </td>
                    <td style="border-bottom:1px solid #ddd;padding:5px 3px;padding-top:10px;">
                        {$agent.nickname}
                    </td>
                    <td style="border-bottom:1px solid #ddd;padding:5px 3px;padding-top:10px;">
                        {$agent.wxnum}
                    </td>
                    <td style="border-bottom:1px solid #ddd;padding:5px 3px;padding-top:10px;text-align:right;">
                        V{$agent.grade}
                    </td>
                </tr>
                {/if}
                {/volist}
            </table>


                </tbody>
            </table>
        </div>
    </div>
</section>
<div style="height:100px;"></div>
{/block}